┌────────────────────────────────┐ │ ░░░ ░░▓ ░▓▓ ███ ▓▓░ ▓░░ │ │ ~ M O O N ~ │ └────────────────────────────────┘
prd-web-01.centraldc.gr
LOCATION:
/usr/share/doc/perl-IO-Compress/io/gzip
☗ ROOT
↻ REFRESH
✎ EDIT FILE
EDITING: gzcat
#!/usr/bin/perl use IO::Uncompress::Gunzip qw( $GunzipError ); use strict ; use warnings ; #die "Usage: gzcat file...\n" # unless @ARGV ; my $file ; my $buffer ; my $s; @ARGV = '-' unless @ARGV ; foreach $file (@ARGV) { my $gz = new IO::Uncompress::Gunzip $file or die "Cannot open $file: $GunzipError\n" ; print $buffer while ($s = $gz->read($buffer)) > 0 ; die "Error reading from $file: $GunzipError\n" if $s < 0 ; $gz->close() ; }
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📄 gzappend
?
392 B
2024-10-29 00:00
EDIT
📄 gzcat
?
488 B
2024-10-29 00:00
EDIT
📄 gzgrep
?
788 B
2024-10-29 00:00
EDIT
📄 gzstream
?
513 B
2024-10-29 00:00
EDIT